<div class="grid_8 blog-three">
	<?php get_template_part('includes/slider'); ?>
	<?php
	if ( have_posts() ) : while ( have_posts() ) : the_post(); 
	if(has_post_format('video')) 
	{
		$format_icon = 'class="video-format-icon"';
		$format_icon_small = ' (Video)';
	}
	else if (has_post_format('audio'))
	{
		$format_icon = 'class="audio-format-icon"';
		$format_icon_small = ' (Audio)';
	}
	else if (has_post_format('gallery'))
	{
		$format_icon = 'class="gallery-format-icon"';
		$format_icon_small = ' (Gallery)';
	}
	else {
		$format_icon = 'class="standard-format-icon"';
		$format_icon_small = '';
	}
			
	$review_show =  get_post_meta(get_the_ID(), 'reedwan_show_review', true);
	$overall_percentage =  get_post_meta(get_the_ID(), 'reedwan_overall_score', true);

			
	 ?>
	<div class="blog-post-three" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
			<?php if(has_post_thumbnail()): ?>
			<div class="magz-image">
				<a <?php echo $format_icon; ?> href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_post_thumbnail('small-slider', array('class' => 'overlay'));?></a>	
				<?php if ($review_show == 'Yes' && $overall_percentage!=0) { ?>
						<span class="content-score"><?php echo $overall_percentage; ?>%</span>
					<?php } ?>
				<div class="big-title">
					<h3><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h3>
					<div class="clear"></div>
					<span class="magz-meta"><?php the_time('F j, Y'); ?>  |  <?php comments_number(__( '0 Comments', 'unicorn'), __('1 Comments', 'unicorn'), __('% Comments', 'unicorn'));?></span>
				</div>
			</div>
			<?php else: ?>
			<div class="magz-image">
				<a <?php echo $format_icon; ?> href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img src="<?php echo get_template_directory_uri(); ?>/images/thumbnails/no-image-small-slider.png" alt="no image" class="overlay" /></a>
				<?php if ($review_show == 'Yes' && $overall_percentage!=0) { ?>
						<span class="content-score"><?php echo $overall_percentage; ?>%</span>
					<?php } ?>
				<div class="big-title">
					<h3><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h3>
					<div class="clear"></div>
					<span class="magz-meta"><?php the_time('F j, Y'); ?>  |  <?php comments_number(__( '0 Comments', 'unicorn'), __('1 Comments', 'unicorn'), __('% Comments', 'unicorn'));?></span>
				</div>
			</div>
			<?php endif; ?>	
			<div class="big-desc">
				<p><?php echo string_limit_words(get_the_excerpt(), 55); ?></p>
				
				<a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>' class="readmore"><?php _e('Read More ', 'unicorn'); ?>&rarr;</a>
			</div>	
		</div>
	<?php endwhile; else: ?>
		
		<h1><?php _e('Sorry, no entries found.', 'unicorn');?></h1>
	
	<?php endif; wp_reset_query();?>
<?php kriesi_pagination(); ?>
</div>
